﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrdenAnticipoPanel.ascx.cs" Inherits="UILGestion.Control.OrdenAnticipoPanel" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc1" %>

 
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        height: 29px;
    }
</style>
<input id="idOrden" type="hidden"  runat="server" />
<input id="bitsinIGV" type="hidden"  runat="server" />
<asp:Panel ID="Panel1" runat="server" CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >
               Anticipo de Orden Numero:<asp:Label ID="numerolbl" runat="server" Text=""></asp:Label>
                </asp:Panel>   
  
  
<asp:UpdatePanel ID="PanelAnticipoPanel" runat="server"  UpdateMode="Conditional">
<ContentTemplate>


<table class="style1">
    <tr>
        <td align="right" width="200px">
                Fecha:</td>
        <td>
            <asp:TextBox ID="fechaTextBox" runat="server"></asp:TextBox>
            <asp:ImageButton ID="ImageButton1" runat="Server" 
                AlternateText="Click aqui para mostrar calendario" 
                ImageUrl="~/Images/month.gif" Width="16px" />
            <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                PopupButtonID="ImageButton1" TargetControlID="fechaTextBox">
            </asp:CalendarExtender>
        </td>
        <td rowspan="4" align="right" valign="top">
            &nbsp;</td>
        <td colspan="3" rowspan="4" align="right" valign="top">
            <table class="PanelTotales">
                <tr>
                    <td align="right">
                        Sub Total:</td>
                    <td align="right">
                        <asp:Label ID="subTotalTextBox" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:CheckBox ID="IGVCheckBox" runat="server" Enabled="false" />
                        IGV
                        <asp:Label ID="IGVvalorLabel" runat="server"></asp:Label>
                        %:
                    </td>
                    <td align="right" valign="100px">
                        <asp:Label ID="IGVLabel" runat="server" Width="85px"></asp:Label>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Total:
                    </td>
                    <td align="right" valign="100px">
                        <asp:Label ID="totalLabel" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="right" width="200px">
            Proveedor:</td>
        <td>
            <asp:Label ID="proveedorLabel" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" width="200px">
            Total Disponible:</td>
        <td>
            <asp:Label ID="totalDisponiblelbl" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" width="200px">
            Porc. Disponible:</td>
        <td>
            %<asp:Label ID="porcDisponiblelbl" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" width="200px">
                Descripcion:</td>
        <td rowspan="4" valign="top" >
                <asp:TextBox ID="descripcionTxt" runat="server" Width="350px"  Height="70PX"
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        <td align="right" width="100PX">
               
                Porcentaje:</td>
        <td align="right" width="100PX">
               
                <cc1:Input 
                    ID="porcentajeTxt" runat="server" DataType="Double"  Width="60px"></cc1:Input>(%)</td>
        <td align="right" >
               
                Total:
               
                </td>
        <td align="left" width="200PX">
               
                 <cc1:Input  ID="totalTxt" runat="server" DataType="Double" Width="100px"></cc1:Input>
               
                </td>
    </tr>
    <tr>
        <td class="style2" align="right" width="200px">
            </td>
        <td align="right" class="style2" width="100PX">
                &nbsp;</td>
        <td align="right" class="style2" width="100PX">
               <asp:Button ID="calcularBtn" runat="server" Text="Calcular  -> Total" 
                    OnClick="calcular" Width="100px" />
               
                </td>
        <td align="right" class="style2" width="100PX">
                 &nbsp;</td>
        <td align="left" class="style2" width="200PX">
                 <asp:Button ID="CalularPorcBtn" runat="server" Text=" %<- Calcular" OnClick="calculart" 
                     Width="100px" />
            </td>
    </tr>
    <tr>
        <td align="right" width="200px">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td width="200PX">
            &nbsp;</td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td align="right" width="100PX">
            &nbsp;</td>
        <td width="200PX">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="calcularBtn" />
<asp:AsyncPostBackTrigger ControlID="CalularPorcBtn" />


</Triggers>
</asp:UpdatePanel>